# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=hare-json
pkgver=0_git20231204
_commit=88256102a9fec62d494628e32cb406574e49e5e1
pkgrel=0
pkgdesc="JSON support for Hare"
url="https://sr.ht/~sircmpwn/hare-json"
arch="noarch !armhf !ppc64le !s390x !armv7 !x86 !loongarch64" # hare
license="MPL-2.0"
makedepends="hare"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-json/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
8a08030e64e19f3ec6989e879d11ebdff3cfc04ac6b05c6ca6ef87e63a9c5bde5af665700c908b114c642039cb05e6c79693a1e6ae8af86906ed63d84f48d3ce  hare-json-88256102a9fec62d494628e32cb406574e49e5e1.tar.gz
"
